package org.jeeasy.system.modules.dept.domain.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jeeasy.common.core.annotation.convert.BeanTransfer;
import org.jeeasy.common.core.base.convert.BaseConverter;
import org.jeeasy.common.core.base.convert.BaseTransfer;
import org.jeeasy.system.modules.dept.domain.SysDept;
import org.mapstruct.Mapper;

@Data
@EqualsAndHashCode(callSuper = true)
@BeanTransfer(value = SysDeptVO.Converter.class)
public class SysDeptVO extends BaseTransfer<SysDept> {

    @Schema(description = "ID")
    private String id;

    @Schema(description = "父机构ID")
    private String parentId;

    @Schema(description = "机构/部门名称")
    private String deptName;

    @Schema(description = "英文名")
    private String deptNameEn;

    @Schema(description = "缩写")
    private String deptNameAbbr;

    @Mapper
    public interface Converter extends BaseConverter<SysDept, SysDeptVO> {
    }
}
